import React, { Component } from 'react';

class Longmao extends Component {
  constructor(props) {
    super(props)

    this.state = {
      sleep: false
    }
  }

  componentDidMount() {

  }

  handleInputChange =  (event) => {
    this.setState({sleep: event.target.checked });
  }



  render() {
    return (
      <div className='longmao-wrap'>
        <input type='checkbox' checked={this.state.sleep} onChange={this.handleInputChange} />
          <div className='totoro'>
            <div className='ears'>
              <div className='ear'></div>
              <div className='ear'></div>
            </div>
            <div className='arm'></div>
            <div className='arm'></div>
            <div className='foot'></div>
            <div className='foot two'></div>
            <div className='body'>
              <div className='spots'>
                <div className='spot'></div>
                <div className='spot'></div>
                <div className='spot'></div>
                <div className='spot'></div>
                <div className='spot'></div>
                <div className='spot'></div>
                <div className='spot'></div>
              </div>
              <div className='inner'>
                <div className='mouth'></div>
                <div className='eye'></div>
                <div className='eye'></div>
              </div>
            </div>
          </div>
      </div>

    )
  }
}

export default Longmao;
